package com.cskaoyan.bean.po;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author stone
 * @date 2022/06/27 15:04
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class SystemPermissions {

    @JsonProperty("systemPermissions")
    private List<SystemPermissionsDTO> systemPermissions;

    @NoArgsConstructor
    @Data
    public static class SystemPermissionsDTO {
        @JsonProperty("id")
        private String id;
        @JsonProperty("label")
        private String label;
        @JsonProperty("children")
        private List<ChildrenDTO> children;

        @NoArgsConstructor
        @Data
        public static class ChildrenDTO {
            @JsonProperty("id")
            private String id;
            @JsonProperty("label")
            private String label;
            @JsonProperty("children")
            private List<ChildrenDTO2> children;

            @NoArgsConstructor
            @Data
            public static class ChildrenDTO2 {
                @JsonProperty("id")
                private String id;
                @JsonProperty("label")
                private String label;
                @JsonProperty("api")
                private String api;
            }
        }
    }
}


